package HomeWork1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入第一个数:");
        int one = in.nextInt();
        System.out.print("请输入第二个数:");
        int two = in.nextInt();
        Compute compute = new Plus();
        UseCompute useCompute = new UseCompute();
        useCompute.useCom(compute,one,two);
        System.out.println("**************");
        useCompute.useCom(new Minus(),one,two);
        System.out.println("***************");
        useCompute.useCom(new Multiply(),one,two);
        System.out.println("***************");
        useCompute.useCom(new Divide(),one,two);
    }
}